﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyWeb.API.Common
{
    public interface IRequest
    {
        /// <summary>
        /// http 请求模式,默认get
        /// </summary>
        [JsonIgnore]
        Boolean HttpGet { get; }

        /// <summary>
        /// 默认请求的 controler地址
        /// </summary>
        [JsonIgnore]
        String ApiName { get; }
        /// <summary>
        /// 基本参数验证
        /// </summary>
        void Validate();
        /// <summary>
        /// 服务地址, 一般为http://域名
        /// </summary>
        [JsonIgnore]
        string ServiceUrl { get; set; }
    }
}
